package com.lemurian.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.BatchSize;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.lemurian.entity.utils.DefaultPersistence;

@Entity
@Table(name="tb_courier")
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
@BatchSize(size=100)
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class Courier extends DefaultPersistence implements Serializable {

	private static final long serialVersionUID = 1L;


	@ManyToOne
	@JoinColumn(name="bpn_reqion_id")
	private BPNRegionList bpnRegion;
	
	private String name;
	
	@Column(name="name", length=45)
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}

	public BPNRegionList getBpnRegion() {
		return bpnRegion;
	}

	public void setBpnRegion(BPNRegionList bpnRegion) {
		this.bpnRegion = bpnRegion;
	}

	
}
